
.flex-dropdown-menu {
  width: auto !important;
  padding: 0 !important;
  min-width: auto !important;
  ul {
    display: flex;
    flex-wrap: wrap;
    border-radius: 6px;
    padding: 12px;
    li {
      border-radius: 4px;
      cursor: url('~@/assets/images/default.png' ) 4 4, auto;
      &:hover {
        background-color: #f5f5f5;
      }
    }
  }
  &.w-260 {
    ul {
      width: 260px;
      li {
        padding: 2px 15px;
      }
    }
  }
  &.w-180 {
    ul {
      width: 180px;
      li {
        padding: 2px 12px;
      }
    }
  }
  &.w-155 {
    ul {
      width: 155px;
      li {
        padding: 6px 12px;
      }
    }
  }
}

.xmind-menu-list-popover {
  border-radius: 6px;
  box-shadow: inset 0px 0px 3px 0px rgba(255, 255, 255, 0.1), 0px 0px 3px 0px rgba(0, 0, 0, 0.14), 0px 8px 40px 0px rgba(0, 0, 0, 0.06);
  cursor: url('~@/assets/images/default.png' ) 4 4, auto;
  padding: 0 !important;
  width: auto !important;
  .menu-list {
    padding: 6px 8px;
    &-item {
      padding: 2px 6px;
      border-radius: 4px;
      width: 200px;
      position: relative;
      margin: 2px 0;
      user-select: none;
      color: #333;
      &.x_border {
        margin-bottom: 12px !important;
        &:after {
          content: "";
          position: absolute;
          left: 8px;
          right: 8px;
          bottom: -7px;
          height: 1px;
          background-color: #e9edf280;
        }
      }
      &.x_disabled {
        cursor: not-allowed;
        opacity: 0.5;
        &:hover {
          background-color: transparent;
        }
      }
      &:hover {
        background-color: rgba(0, 0, 0, 0.08);
        .ul-item-children {
          display: block;
        }
      }
      .iitem {
        display: flex;
        height: 28px;
        align-items: center;
        p {
          font-size: 14px;
        }
        .icon {
          margin-right: 10px;
          font-size: 18px;
        }
        .arrow_right {
          position: absolute;
          right: 5px;
          top: 8px;
          font-size: 16px;
        }
      }
      .ul-item-children {
        position: absolute;
        right: -190px;
        top: -10px;
        box-shadow: 0px 8px 24px rgba(25,25,26,.06), 0px 4px 16px rgba(25,25,26,.04), 0px 0px 4px rgba(25,25,26,.04);
        padding: 6px 8px;
        border-radius: 8px;
        background: #fff;
        display: none;
        li {
          height: 28px;
          width: 180px;
          position: relative;
          border-radius: 4px;
          font-size: 13px;
          height: 30px;
          padding: 0 8px;
          &.flex {
            display: flex;
            align-items: center;
            img {
              display: block;
              width: 16px;
              margin-right: 8px;
            }
          }
          p {
            line-height: 32px;
          }
          &:hover {
            background-color: rgba(0, 0, 0, 0.08);
          }
        }
      }
    }
  }
  
  &.small-popover {
    cursor: url('~@/assets/images/default.png' ) 4 4, auto;
    .menu-list {
      &-item {
        width: 130px;
        margin: 2px 0;
        .iitem {
          height: 24px;
          p {
            font-size: 13px;
          }
        }
      }
    }
  }

  &.canvas-list {
    cursor: url('~@/assets/images/default.png' ) 4 4, auto;
    .menu-list {
      &-item {
        width: 180px;
        margin: 2px 0;
        .iitem {
          height: 28px;
          p {
            font-size: 13px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            flex: 1;
            width: 0;
          }
          .selected {
            font-size: 18px;
            margin-right: 6px;
            position: relative;
            top: 2px;
            &.hidden {
              opacity: 0;
              pointer-events: none;
            }
          }
          .more {
            cursor: url('~@/assets/images/default.png' ) 4 4, auto;
            padding: 0 4px;
            border-radius: 2px;
            &:hover {
              background-color: rgb(247,247,247);
            }
          }
        }
      }
      .title {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        padding: 8px 8px;
        justify-content: space-between;
        p {
          font-size: 12px;
          color: #999;
        }
        i {
          color: #4c4c4c;
          font-size: 15px;
        }
      }
      .tip {
        padding: 6px 8px;
        border-radius: 4px;
        font-size: 11px;
        color: #4c4c4c;
        background-color: rgb(247,247,247);
        margin-bottom: 4px;
      }
    }
  }

  &.mini-popover {
    .menu-list {
      &-item {
        width: 136px;
        margin: 2px 0;
        .iitem {
          height: 26px;
          p {
            font-size: 12px !important;
          }
        }
      }
    }
  }
}

.upload-file-modal {
  position: fixed;
  z-index: 999;
  top: 50%;
  left: 50%;
  width: 550px;
  height: 380px;
  margin: -300px 0 0 -300px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 2px 6px 12px 4px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px 0 0;
  .upload-file-title {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    p {
      color: #000;
      font-size: 14px;
    }
  }

  .upload-file-content {
    flex: 1;
    height: 0;
    padding: 8px 30px 18px;
    display: flex;
    flex-direction: column;
    & > div:nth-child(1) {
      flex: 1;
      height: 0;
      .el-upload {
        border-radius: 6px;
        overflow: hidden;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        .upload-block {
          height: 100%;
          display: flex;
          justify-content: center;
          flex-direction: column;
          height: 100%;
          .upload-text {
            font-size: 12px;
            color: #999;
          }
          .upload-drag-icon {
            margin-bottom: 0;
            font-size: 0;
            text-align: center;
            img {
              width: 100px;
            }
          }
        }
        .file-name {
          color: #999;
          font-size: 13px;
        }
        .image-preview {
          width: 100%;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          img {
            display: block;
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
          }
        }
      }
    }

    .upload-tip {
      color: rgba(0, 0, 0, 0.3);
      font-size: 12px;
      padding-top: 10px;
      flex-shrink: 0;
    }

    .xmind-map-list {
      display: flex;
      align-items: center;
      margin-top: 12px;
      p {
        margin-right: 12px;
        font-size: 12px;
        color: #999;
      }
    }

    .map-import-position {
      margin-top: 16px;
    }
  }

  footer {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
  }

  .close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    color: #999;
  }
}

.draging-elemet-graph {
  &-5 {
    pointer-events: none;
    opacity: .5;
  }
  &-2 {
    transition: .3s;
    pointer-events: none;
    opacity: .2;
    .child-ref-expand {
      display: none;
    }
  }
}

.nodedragenter-shadow, .drag-shadow-node {
  pointer-events: none;
}

.node-summary-description, .node-text-description {
  white-space: pre-wrap;
  line-height: inherit;
  padding: 0;
  margin: 0;
}

.out-border-desc-input {
  padding: 6px 14px;
  border-radius: 6px 6px 1px 1px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  display: inline-block;
  z-index: 9999;
}

#zx-xmind-map {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  user-select: none;
  #zx-xmind-map-svg {
    &.grabbing {
      cursor: url(''), auto;
    }
    &.moving {
      cursor: url(''), auto;
      .mind-map-summarybox, .mind-map-relationbox {
        pointer-events: none;
      }
    }
    &.e-resize, .control-point.left, .control-point.right {
      cursor: url('') 11 11, auto;
    }
    &.n-resize, .control-point.up, .control-point.down {
      cursor: url('') 11 11, auto;
    }
    &.nw-resize, .top-left-point, .bottom-right-point {
      cursor: url('') 11 11, auto;
    }
    &.ne-resize, .top-right-point, .bottom-left-point {
      cursor: url('') 11 11, auto;
    }
  }

  &.xmind-readonly {
    .mind-map-edgebox, .mind-map-nodebox, .mind-map-outborder {
      pointer-events: none;
    }
  }

  &.hidden {
    opacity: 0;
    pointer-events: none;
  }
}